import request from "@/utils/request";
// 获取员工基本信息
export function getRolesList(params){
    return request({
        url:'/sys/role',
        method:'get',
        params
    })
}


// 添加角色
export function addRolesList(data){
    return request({
        url:'/sys/role',
        method:'post',
        data
    })
}

// 编辑角色
export function updateRolesList(data){
    return request({
        url:`/sys/role/${data.id}`,
        method:'put',
        data
    })
}
// 删除角色
export function deleRolesList(id){
    return request({
        url:`/sys/role/${id}`,
        method:'delete',
       
    })
}

